home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-04-20 | 1.1 KB | 66 lines | [TEXT/PJMM] |
- unit BaseGlobals;
-
- { This program was written by Peter N Lewis, Mar 1992 in THINK Pascal 4.0.1 }
-
- interface
-
- const
- growzone_size = 5000;
- global_strh_id = 128;
- save_changes_alert_id = 135;
- fail_alert_id = 150;
- fail_strh_id = -1;
-
- pref_name = 1;
- pref_launch_str = 2;
- pref_no_file = 3;
- help_menu_text = 4;
- quiting_str = 5;
- closing_str = 6;
- notify_str = 7;
-
- M_Apple = 128;
- M_File = 129;
- M_Edit = 130;
-
- CAbout = 'abou';
- CClose = 'clos';
- CPreferences = 'pref';
- CHelp = 'help';
- CQuit = 'quit';
- CUndo = 'undo';
- CCut = 'cut ';
- CCopy = 'copy';
- CPaste = 'past';
- CClear = 'clea';
- CSelectAll = 'sela';
-
- var
- M_HM_Help_I: integer;
- MH_Apple, MH_File, MH_Edit: menuHandle;
- quitNow: boolean;
-
- function GetGlobalString (i: integer): str255;
- procedure AlertUser (i: integer);
-
- implementation
-
- function GetGlobalString (i: integer): str255;
- var
- s: str255;
- begin
- GetIndString(s, global_strh_id, i);
- GetGlobalString := s;
- end;
-
- procedure AlertUser (i: integer);
- var
- s: str255;
- a: integer;
- begin
- GetIndString(s, fail_strh_id, i);
- ParamText(s, '', '', '');
- a := Alert(fail_alert_id, nil);
- end;
-
- end.